package com.ridanlabs.professorwebsite.general;

public enum CourseSeason {
	FALL,
	WINTER,
	SPRING,
	SUMMER;
	
	public String getCourseSeason() {
		return toString();
	}
	
	public static CourseSeason fromString(String season) {
		if( season == null ) return null;
		
		for( CourseSeason cs : CourseSeason.values() )
			if( cs.toString().equalsIgnoreCase( season ) ) 
				return cs;
				
		return null;
	}
}
